import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../utils'
import Mock from 'mockjs'
export const loginLogMock = pageSize => {
  const result: any[] = []
  for (let i = 0; i < pageSize; i++) {
    result.push({
      id: i + 1,
      username: '@cname()',
      type: Mock.mock('@natural(1, 5)'),
      userIp: Mock.Random.ip(),
      'agent|1': ['google', 'edge', 'ie', 'mac'],
      result: Mock.mock('@natural(1, 6)'),
      creator: '1',
      create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
      updater: '',
      update_time: '',
      deleted: false,
      deleted_time: ''
    })
  }
  return result
}
